/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.era7bioinformatics.aws.s3.components.generic.data.grantees

import com.era7bioinformatics.aws.s3.components.generic.data.Grantee

import java.net.URL

sealed trait AwsUserGroup extends Grantee {

  val uri: URL

  override lazy val identifier = uri.toString
  
}


object ALL_AWS_USERS extends AwsUserGroup {

  override lazy val uri = new URL("http://acs.amazonaws.com/groups/global/AuthenticatedUsers")

}

object ALL_USERS extends AwsUserGroup {

  override lazy val uri = new URL("http://acs.amazonaws.com/groups/global/AllUsers")

}